home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 11
/
AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso
/
Files
/
Bus
/
S
/
Solve.sit
/
solve
/
loan
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1987-04-23
|
270 b
|
7 lines
|
[
TEXT/SOLV
]
precision = 2
monthly_interest = yearly_interest / 12.0;
months = years * 12.0;
payments = principle / annuity( monthly_interest / 100.0, months);
costOfLoan = payments * months - principle;
costPerPayment = costOfLoan / months;
principlePerPayment = principle / months;